{template 'common/header'}
    <div id="main-column" class="container-12 clearfix member-center">
        <div class="column2 grid-3 alpha omega">
            {template 'setting/nav'}
        </div>
        <div class="column1 grid-10 alpha omega modules">
            <div class="form">
				<div class="form_h">
            		<h6>管理员信息修改</h6>
				</div>
                <form action="" method="post" onsubmit="return formcheck(this)">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
                	<th>管理员帐号</th>
                    <td>
						<input type="text" name="name" class="txt grid-4 alpha pin" value="{$_W['username']}" readonly />
						<div class="notice">只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符</div>
					</td>
				</tr>
				<tr>
                	<th>管理员密码</th>
                    <td>
						<input type="password" name="pw" class="txt grid-4 alpha pin" value="" />
					</td>
				</tr>
				<tr>
                	<th style="color:red;">新密码</th>
                    <td>
						<input type="password" name="pw2" class="txt grid-4 alpha pin" value="" />
					</td>
				</tr>
				<tr>
                	<th style="color:red;">确认密码</th>
                    <td>
						<input type="password" name="pw3" class="txt grid-4 alpha pin" value="" />
					</td>
				</tr>
				<tr>
                	<th></th>
                    <td>
						<input name="submit" type="submit" value="提交" class="mt10 btn grid-2 alpha" />
						<input type="hidden" name="token" value="{$_W['token']}" />
					</td>
				</tr>
				</table>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    function formcheck(form) {
        if (!form['name'].value) {
            alert('请填写管理员帐号！');
            form['name'].focus();
            return false;
        }
        if (!form['pw'].value) {
            alert('请填写管理员密码！');
            form['pw'].focus();
            return false;
        }
        if (!form['pw2'].value) {
            alert('请填写新密码！');
            form['pw2'].focus();
            return false;
        }
        if (form['pw'].value == form['pw2'].value) {
            alert('新密码与原密码一致，请检查！');
            form['pw'].focus();
            return false;
        }
        if (form['pw2'].value.length < 6 ) {
            alert('管理员密码不得小于6个字符！');
            form['pw2'].focus();
            return false;
        }
		if (form['pw2'].value != form['pw3'].value) {
            alert('两次输入的新密码不一致，请重新输入！');
            form['pw2'].focus();
            return false;
        }
    }
    </script>
{template 'common/footer'}